package com.wing.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.order.model.entity.InventoryOutPlan;
import com.wing.order.model.request.InventoryOutPlanForm;
import com.wing.order.model.response.InventoryInoutJobVO;
import com.wing.order.model.response.InventoryOutPlanVO;
import com.wing.warehouse.model.entity.Warehouse;

import java.util.List;
import java.util.Map;

/**
 * 出库单计划-Service
 *
 * @author
 */
public interface InventoryOutPlanService extends IService<InventoryOutPlan> {

    /**
     * 添加
     *
     * @param inventoryOutPlanForm
     * @return
     */
    JsonResult add(InventoryOutPlanForm inventoryOutPlanForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<InventoryOutPlanVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<InventoryOutPlanVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    InventoryOutPlanVO get4appById(Long id);

    IPage<InventoryOutPlan> getInventoryOutPlanPageList(InventoryOutPlan inventoryOutPlan, Integer page, Integer limit);

    InventoryOutPlanVO getInventoryOutPlanById(Long id);

    public List<InventoryOutPlan> getPlanAll();

    IPage<InventoryInoutJobVO> getInventoryOutWorkRecordPageList(InventoryInoutJobVO inventoryInoutJobVO, Integer page, Integer limit);

    /**
     * 查询所有平台端的仓库
     * @return
     */
    public List<Warehouse> getPlatformWarehouseAll();

    InventoryOutPlanVO getInventoryOutPlanDetailById(Long id);
}
